/**
 * 
 */
package com.hst.web.sys.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hst.core.annotation.Comment;
import com.hst.core.annotation.ResponseModel;

/**
 * @author wangyh
 *
 */
@Entity
@Table(name="sys_menu")
@Comment("菜单表")
@ResponseModel
public class TMenu implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(length=10)
	@Comment("菜单ID")
	private String id;
	
	@Column(length=10)
	@Comment("上级菜单ID,为0表示一级菜单")
	private String pid;
	
	@Column(length=30)
	@Comment("菜单图标")
	private String icon;
	
	@Column(length=30)
	@Comment("菜单名称")
	private String name;
	
	@Column(length=300)
	@Comment("菜单参数")	
	private String args;

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the pid
	 */
	public String getPid() {
		return pid;
	}

	/**
	 * @param pid the pid to set
	 */
	public void setPid(String pid) {
		this.pid = pid;
	}

	/**
	 * @return the icon
	 */
	public String getIcon() {
		return icon;
	}

	/**
	 * @param icon the icon to set
	 */
	public void setIcon(String icon) {
		this.icon = icon;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	public String getArgs() {
		return args;
	}

	public void setArgs(String args) {
		this.args = args;
	}
}
